home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gscolor2.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.1 KB  |  58 lines

  1. /* Copyright (C) 1992, 2000 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gscolor2.h,v 1.3 2000/09/19 19:00:26 lpd Exp $ */
  20. /* Client interface to Level 2 color facilities */
  21. /* (requires gscspace.h, gsmatrix.h) */
  22.  
  23. #ifndef gscolor2_INCLUDED
  24. #  define gscolor2_INCLUDED
  25.  
  26. #include "gscindex.h"
  27. #include "gsptype1.h"
  28.  
  29. /* ---------------- Graphics state ---------------- */
  30.  
  31. /*
  32.  * Note that setcolorspace and setcolor copy the (top level of) their
  33.  * structure argument, so if the client allocated it on the heap, the
  34.  * client should free it after setting it in the graphics state.
  35.  */
  36.  
  37. /* General color routines */
  38. const gs_color_space *gs_currentcolorspace(P1(const gs_state *));
  39. int gs_setcolorspace(P2(gs_state *, const gs_color_space *));
  40. const gs_client_color *gs_currentcolor(P1(const gs_state *));
  41. int gs_setcolor(P2(gs_state *, const gs_client_color *));
  42.  
  43. /*
  44.  * gs_currentcolorspace_index returns the index of the current color space
  45.  * *before* any substitution.
  46.  */
  47. gs_color_space_index gs_currentcolorspace_index(P1(const gs_state *));
  48.  
  49. /* CIE-specific routines */
  50. #ifndef gs_cie_render_DEFINED
  51. #  define gs_cie_render_DEFINED
  52. typedef struct gs_cie_render_s gs_cie_render;
  53. #endif
  54. const gs_cie_render *gs_currentcolorrendering(P1(const gs_state *));
  55. int gs_setcolorrendering(P2(gs_state *, gs_cie_render *));
  56.  
  57. #endif /* gscolor2_INCLUDED */
  58.